import request from "@/utils/request";

// 查询用户提现列表
export function listUserExtract(query) {
  return request({
    url: "/business/userExtract/list",
    method: "get",
    params: query,
  });
}

// 查询用户提现所有列表
export function listAllUserExtract(query) {
  return request({
    url: "/business/userExtract/listAll",
    method: "get",
    params: query,
  });
}

// 查询用户提现详细
export function getUserExtract(id) {
  return request({
    url: "/business/userExtract/getInfo/" + id,
    method: "get",
  });
}

// 新增用户提现
export function addUserExtract(data) {
  return request({
    url: "/business/userExtract/add",
    method: "post",
    data: data,
  });
}

// 修改用户提现
export function updateUserExtract(data) {
  return request({
    url: "/business/userExtract/audit",
    method: "post",
    data: data,
  });
}

// 删除用户提现
export function delUserExtract(id) {
  return request({
    url: "/business/userExtract/remove/" + id,
    method: "get",
  });
}
